<include file="../Public/header" />
<script>
var URL_DEL = '{:URL("admin/Global/doDeleteCredit")}';
</script>
<script data-main="__PUBLIC__/admin/js/page/admin/global/credit" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.creditConfig}</h1>
    </div>

    <div class="navbar">
      <ul class="nav">
        <li class="active"><a href="{:URL('admin/Global/credit')}">{$Think.lang.creditRule}</a>
        </li>
        <li><a href="{:URL('admin/Global/creditType')}">{$Think.lang.creditType}</a>
        </li>
        <li><a href="{:URL('admin/Global/creditUser')}">{$Think.lang.creditUser}</a>
        </li>
      </ul>
    </div>

    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width:20px">
                <input type="checkbox" value="0" class="toggle-all">
              </th>
              <th style="width:30px">{$Think.lang.ID}</th>
              <th style="">{$Think.lang.Name}</th>
              <th style="">{$Think.lang.alias}</th>
              <th style="">{$Think.lang.type}</th>
              <volist name="creditType" id="ct">
                <th style="">{$ct.alias}</th>
              </volist>
              <th style="">{$Think.lang.operating}</th>
            </tr>
          </thead>
          <tbody>
            <volist id="vo" name="list">
              <tr data-id="{$vo.id}">
                <td>
                  <input type="checkbox" name="checkbox" value="{$vo.id}" class="toggle">
                </td>
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td>{$vo.alias}</td>
                <td>{$vo.type}</td>
                <volist name="creditType" id="ct">
                  <td>{$vo[$ct['name']]}</td>
                </volist>
                <td><a href="{:URL('admin/Global/editCredit',array('id'=>$vo['id']))}">{$Think.lang.editor}</a>|
                  <a href="javascript:;" class="A_del">{$Think.lang.delete}</a>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>

      <div class="datas-ft">
        <div class="actions">
          <a href="{:URL('admin/Global/addCredit')}" class="btn">{$Think.lang.add}</a>
          <a href="javascript:;" class="btn" id="J_del">{$Think.lang.delete}</a>
        </div>
      </div>
    </div>

  </div>
</body>

</html>
